package com.zhangh.summer.admin.support.prometheus.redis;

import io.prometheus.client.Gauge;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2020-08-04 17:58
 **/
public class RedisMetrics {
    public static final Gauge maxBorrowWaitTimeMillisEndpoint= Gauge.build().name("redis_max_borrow_wait_time_millis").help("redis_max_borrow_wait_time_millis").labelNames("pool").register();
    public static final Gauge meanBorrowWaitTimeMillisEndpoint= Gauge.build().name("redis_mean_borrow_wait_time_millis").help("redis_mean_borrow_wait_time_millis").labelNames("pool").register();
    public static final Gauge numActiveEndpoint= Gauge.build().name("redis_num_active").help("redis_num_active").labelNames("pool").register();
    public static final Gauge numIdleEndpoint= Gauge.build().name("redis_num_idle").help("redis_num_idle").labelNames("pool").register();
    public static final Gauge numWaitersEndpoint= Gauge.build().name("redis_num_waiters").help("redis_num_waiters").labelNames("pool").register();
    public static final Gauge maxTotalEndpoint= Gauge.build().name("redis_max_total").help("redis_max_total").labelNames("pool").register();

}
